<%-- 
    Document   : editBrand
    Created on : Jun 13, 2012, 4:26:36 PM
    Author     : Owner
--%>

<%@include file="/jsp/adminTop.jsp" %>
<html>
    <head>
        <title>Edit Brand</title>
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>
                            <td style="vertical-align: top;" width="20%">
                                <%@include file="/jsp/right.jsp" %>
                            </td>
                            <td>                &nbsp;            </td>
                            <td style="vertical-align: top;" width="80%">
                                <div class="page-title"><h1>Manage Brands</h1></div>
                                <table border="1" cellspacing="10px" align="center" width="100%">
                                    <tr>
                                        <td><h2>Edit Brand</h2></td>
                                        <td>[<a href="./brand.do?action=showManageBrand">List Brands</a> |
                                            <a href="./brand.do?action=showAddBrand">Add Brands</a> ]
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <html:form action="/brand" method="post" enctype="multipart/form-data">
                                                <logic:present name="brand" scope="request">
                                                    <table border="1" cellspacing="10px" align="center">
                                                        <tr>
                                                            <td colspan="2">Brand Details</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"> Brand Id:<bean:write name="brand" property="brandId"/>
                                                                <html:hidden name="brand" property="brandId"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Brand Name:</td>
                                                            <td><html:text name="brand" property="brandName"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><html:errors property="errBrandName"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Brand Title:</td>
                                                            <td><html:text name="brand" property="brandTitle"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><html:errors property="errBrandTitle"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Status:</td>
                                                            <td><html:select name="brand" property="brandStatusId">
                                                                    <html:option value="0">--Select--</html:option>
                                                                    <html:options collection="statusList" property="key" labelProperty="value"/>
                                                                </html:select>  </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><html:errors property="errBrandStatus"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Brand Logo:</td>
                                                            <td>
                                                                <html:file name="brand" property="brandLogo" accept="image/*" />
                                                                <br/>
                                                                <html:hidden name="brand" property="brandLogoName"/>
                                                                <img src="brands/<bean:write name="brand" property="brandLogoName"/>" alt="Brand Logo"/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><html:errors property="errBrandLogo"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Short Description:</td>
                                                            <td><html:textarea name="brand" property="brandDesc"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><html:errors property="errBrandDescription"/></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <div id="errdividbrand" >
                                                                    <span id="errspanidbrand"></span>
                                                                    <html:errors property="errBrand"/>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td><a onclick="javascript:return validateBrand('./brand.do?action=updateBrand','BrandBean')">
                                                                    <img src="images/update.png" onmouseout="src='images/update.png'" onmouseover="src='images/update-hover.png'" alt="Update" /></a></td>
                                                            <td><a onclick="javascript:deleteBrand('./brand.do?action=deleteBrand','BrandBean')">
                                                                    <img src="images/delete.png" onmouseout="src='images/delete.png'" onmouseover="src='images/delete-hover.png'" alt="Delete" /></a></td>
                                                        </tr>
                                                    </table>
                                                </logic:present>
                                            </html:form>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>


    </body>
</html>
